<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<link href="SyntaxHighlighter.css" rel="stylesheet" type="text/css" />
<style type="text/css"><!--
p.MsoNormal {margin:0cm;
margin-bottom:.0001pt;
text-autospace:none;
font-size:10.0pt;
font-family:Arial;}
-->
</style>
<style type="text/css">
<!--
table.MsoNormalTable {
font-size:10.0pt;
font-family:"Times New Roman";
}
-->
</style>
</head>

<body>
<p class="MsoNormal" style="background:white;"><span class="MsoNormal" style="background:white;"><img src="saibamais.jpg" width="270" height="50" alt="Saiba Mais" /></span></p>
<p class="MsoNormal" style="background:white;"></p>
<p class="MsoNormal" style="background:white;"><strong><span style="font-size:12.0pt; ">Checkpoint</span></strong><strong><span style="font-size:12.0pt; "> 9.3</span></strong></p>
<p class="MsoNormal" style="margin-top:0cm;margin-right:24.95pt;margin-bottom:.0001pt;margin-left:28.3pt;line-height:12.0pt;background:white;"><span style="font-size:12.0pt; ">For scripts, specify  logical event handlers rather than device-dependent event handlers.</span></p>
<ol>
  <li><span style="font-size:12.0pt; ">Use </span><span style="font-size:12.0pt; ">&ldquo;</span><span style="font-size:12.0pt; ">onmousedown</span><span style="font-size:12.0pt; ">&rdquo;</span><span style="font-size:12.0pt; "> with </span><span style="font-size:12.0pt; ">&ldquo;</span><span style="font-size:12.0pt; ">onkeydown</span><span style="font-size:12.0pt; ">&rdquo;</span><span style="font-size:12.0pt; ">.</span><span style="font-size:12.0pt; "> </span></li>
  <li><span style="font-size:12.0pt; ">Use </span><span style="font-size:12.0pt; ">&ldquo;</span><span style="font-size:12.0pt; ">onmouseup</span><span style="font-size:12.0pt; ">&rdquo;</span><span style="font-size:12.0pt; "> with </span><span style="font-size:12.0pt; ">&ldquo;</span><span style="font-size:12.0pt; ">onkeyup</span><span style="font-size:12.0pt; ">&rdquo;</span></li>
  <li><span style="font-size:12.0pt; ">Use &ldquo;onclick&rdquo; with &ldquo;onkeypress&rdquo;</span></li>
  <li><span style="letter-spacing:-.05pt; font-size:12.0pt; ">Note that there is no </span><span style="font-size:12.0pt; ">keyboard equivalent to double-click (</span><span style="font-size:12.0pt; ">&ldquo;</span><span style="font-size:12.0pt; ">ondblclick</span><span style="font-size:12.0pt; ">&rdquo;</span><span style="font-size:12.0pt; ">) in HTML  4.0.</span><span style="font-size:12.0pt; "> </span></li>
</ol>
<p class="MsoNormal" style="margin-top:27.35pt;background:white;"><strong><span style="font-size:12.0pt; ">Example:</span></strong></p>
<p class="MsoNormal" style="line-height:12.0pt;background:white;"><span style="font-size:12.0pt; ">In this case,  ONFOCUS is perfectly apropriated, because it works with mouse or keyboard:</span></p>
<p class="MsoNormal" style="margin-top:9.85pt;margin-right:44.65pt;margin-bottom:.0001pt;margin-left:0cm;text-align:justify;line-height:12.0pt;background:white;"><strong><span style="letter-spacing:-.25pt; font-family:'Courier New'; ">&lt;button onfocus=</span></strong><strong><span style="font-family:'Courier New'; ">&rdquo;</span></strong><strong><span style="font-family:'Courier New'; ">pop1()</span></strong><strong><span style="font-family:'Courier New'; ">&rdquo;</span></strong><strong><span style="font-family:'Courier New'; ">&gt; Register! &lt;/button&gt;</span></strong></p>
<p class="MsoNormal" style="line-height:21.85pt;background:white;"><span style="font-size:12.0pt; ">And here is the script:</span></p>
<p class="MsoNormal" style="margin-left:.25pt;line-height:21.85pt;background:white;"><strong><span style="font-family:'Courier New'; ">&lt;script type=</span></strong><strong><span style="font-family:'Courier New'; ">&rdquo;</span></strong><strong><span style="font-family:'Courier New'; ">text/javascript</span></strong><strong><span style="font-family:'Courier New'; ">&rdquo;</span></strong><strong><span style="font-family:'Courier New'; ">&gt;</span></strong> </p>
<p class="MsoNormal" style="margin-left:.25pt;line-height:9.85pt;background:white;"><strong><span style="font-family:'Courier New'; ">function pop1() { alert (</span></strong><strong><span style="font-family:'Courier New'; ">&ldquo;</span></strong><strong><span style="font-family:'Courier New'; ">Compete to </span></strong><strong><span style="font-family:'Courier New'; ">10 prizes</span></strong><strong><span style="font-family:'Courier New'; ">!</span></strong><strong><span style="font-family:'Courier New'; ">&rdquo;</span></strong><strong><span style="font-family:'Courier New'; ">) }</span></strong></p>
<p class="MsoNormal" style="margin-left:.25pt;line-height:9.85pt;background:white;"><strong><span style="font-family:'Courier New'; ">&lt;/script&gt;</span></strong></p>
<p class="MsoNormal" style="margin-left:.25pt;line-height:9.85pt;background:white;"><strong><span style="font-family:'Courier New'; ">&lt;noscript&gt;Compete to  </span></strong><strong><span style="font-family:'Courier New'; "> 10 prizes!&lt;/noscript&gt;</span></strong></p>
<strong><span style="font-family:Arial; font-size:12.0pt; "><br clear="all" style="page-break-before:always;" />
</span></strong>
<p class="MsoNormal" style="margin-left:1.45pt;background:white;">&nbsp;</p>
</body>
</html>
